package dao;

import model.One;

public class OneDAO extends DAO {
    public One getOneById(int id) {
        One one = null;
        try {
            one = (One)getSession().load(One.class, id);
        }
        catch (Exception e) {
            System.out.println(e);
        }

        return one;
    }
}
